home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
envprt
/
raddress.frm
< prev
Wrap
Text File
|
1995-05-08
|
4KB
|
143 lines
VERSION 2.00
Begin Form Raddress
BackColor = &H00404040&
Caption = "Return Address"
ClientHeight = 3195
ClientLeft = 1725
ClientTop = 2460
ClientWidth = 6525
ControlBox = 0 'False
Height = 3600
Left = 1665
LinkMode = 1 'Source
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 6525
Top = 2115
Width = 6645
Begin CommandButton StoreButton
Caption = "&Done"
Height = 380
Left = 2640
TabIndex = 7
Top = 2280
Width = 975
End
Begin TextBox Ra4
Height = 380
Left = 480
TabIndex = 3
Top = 1680
Width = 3255
End
Begin TextBox Ra3
Height = 380
Left = 480
TabIndex = 2
Top = 1200
Width = 3255
End
Begin TextBox Ra2
Height = 380
Left = 480
TabIndex = 1
Top = 720
Width = 3255
End
Begin Frame Frame1
BackColor = &H0000FF00&
Caption = "Use Return Address"
Height = 1220
Left = 3840
TabIndex = 4
Top = 360
Width = 1935
Begin OptionButton NoButton
BackColor = &H0000FF00&
Caption = "&No"
Height = 260
Left = 240
TabIndex = 6
Top = 720
Width = 975
End
Begin OptionButton YesButton
BackColor = &H0000FF00&
Caption = "&Yes"
Height = 260
Left = 240
TabIndex = 5
Top = 360
Value = -1 'True
Width = 1095
End
End
Begin TextBox Ra1
Height = 380
Left = 480
TabIndex = 0
Top = 240
Width = 3255
End
End
Sub NoButton_Click ()
UseRa = 0
End Sub
Sub Ra1_KeyPress (keyascii As Integer)
If keyascii = 13 Then
keyascii = 0
SendKeys "{TAB}"
End If
End Sub
Sub Ra2_KeyPress (keyascii As Integer)
If keyascii = 13 Then
keyascii = 0
SendKeys "{TAB}"
End If
End Sub
Sub Ra3_KeyPress (keyascii As Integer)
If keyascii = 13 Then
keyascii = 0
SendKeys "{TAB}"
End If
End Sub
Sub Ra4_KeyPress (keyascii As Integer)
If keyascii = 13 Then
keyascii = 0
Ra1.SetFocus
End If
End Sub
Sub StoreButton_Click ()
If YesButton.value = True Then UseRa = -1 Else UseRa = 0
If UseRa <> 0 And Len(RTrim$(LTrim$(Ra1.text))) > 0 Then
Form1.r1.caption = Ra1.text
Form1.r2.caption = Ra2.text
Form1.r3.caption = Ra3.text
Form1.R4.caption = Ra4.text
Else
Form1.r1.caption = "No Return Address"
Form1.r2.caption = ""
Form1.r3.caption = ""
Form1.r3.caption = ""
End If
Ra1.SetFocus
Raddress.Hide
End Sub
Sub YesButton_Click ()
UseRa = -1
End Sub